package com.yilin.platform.service.user;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.platform.base_core.application.PageData;
import com.yilin.platform.entity.user.Account;
import com.yilin.platform.entity.user.Organize;

import java.util.List;

public interface IOrganizeService extends IService<Organize> {

    void organizeRegister(Organize organize, Account account);

    Organize getOrganizeById(String organizeId);

    List<Organize> getGroupOrganizeList(String groupOrganizeId);

    PageData<Organize> getBelowOrganizePage(String organizeId, Organize query, Integer page, Integer limit);

    PageData<Organize> getAuthorizedOrganizePage(Organize query, Integer page, Integer limit);

    PageData<Organize> getLowerOrganizePage(Organize query, Integer page, Integer limit);

    List<Organize> getOrganizeListByIds(String[] organizeIds);

    void updateOrganize(Account loginUser, Organize organize, Organize localOrganize);

    void dismissOrganize(Account loginUser, Organize organize);

    List<Organize> getTruckOrganizeList();

    PageData<Organize> getTruckOrganizePage(Organize query, Integer page, Integer limit);
}
